#include<stdio.h>

int main(){
    int n, score[100], sum;
    while(scanf("%d", &n) != EOF){
        sum = 0;
        for(int i = 0; i < n; i++){
            scanf("%d", &score[i]);
            sum += score[i];
        }
        for(int i = 0; i < n; i++){
            if(n * score[i] < sum){
                printf("%d ",score[i]);
            }
        }printf("\n");
    }
    return 0;
}

/*牛可乐打算对班里成绩低于平均分的同学进行定向的课程辅导，请输出所有低于平均分的分数。*/